import Vue from 'vue'
import App from './App.vue'

// 引入路由
import router from '@/router';

// 引入仓库
import store from '@/store';

// import { reqCategoryList} from '@/api';
// reqCategoryList()
// 三级联动组件----全局组件
import TypeNav from '@/components/TypeNav';
import Carousel from '@/components/Carousel';
import Pagination from '@/components/Pagination'
Vue.component(TypeNav.name, TypeNav);
Vue.component(Carousel.name, Carousel);
Vue.component(Pagination.name, Pagination);
// 引入MockServe.js --mock数据
import '@/mock/mockServe'
// 引入swiper样式
import 'swiper/css/swiper.css'
// Vue.config.productionTip = false



new Vue({
  render: h => h(App),
  // 全局事件总线$bus
  beforeCreate(){
    Vue.prototype.$bus= this;
  },
  // 包含$route $router
  router,
  // 注册仓库
  store,

}).$mount('#app')
